//
//  FeedbackController.m
//  Words2
//
//  Created by Mathieu Tozer on 25/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import "FeedbackController.h"


@implementation FeedbackController

- (IBAction)sendFeedbackMail:(id)sender
    // Create a mail message in the user's preferred mail client
    // by opening a mailto URL.  The extended mailto URL format
    // is documented by RFC 2368 and is supported by Mail.app
    // and other modern mail clients.
    //
    // This routine's prototype makes it easy to connect it as
    // the action of a user interface object in Interface Builder.
{
    NSURL *     url;
	
    // Create the URL.
	
    url = [NSURL URLWithString:@"mailto:email@mathieutozer.com"
        "?subject=Words%20Feedback"
        "&body=Requests%20%20Suggestions%20%20Comments"
		];
    assert(url != nil);
	
    // Open the URL.
	
    (void) [[NSWorkspace sharedWorkspace] openURL:url];
}

@end
